<%
    Users user = Trader.getUser(request.getParameter("uid"));
	wstrader.task.home.DailyBasisFutures task = user.home.daily_basis_fut;

	task.getRequest().setRequest(request);
	task.getResponse().setResponse(response,out);
	
	if (!user.Authenticated()) {
		response.sendRedirect("logon.jsp");
		return;
	}
	((Tasks)task.getOwner()).clearFocus();
	task.setFocus(true);	
	
	Trader.window_width = "900";	
	
	int dLoop=0;
	ResultSet Rs;
	ResultSet rs;
%>

<%@include file="../header.jsp"%><style type="text/css">
<!--
.style1 {
	font-family: Arial;
	font-size: 12px;
}
.style3 {font-weight: bold}
.style4 {font-family: Arial; font-size: 12px; font-weight: bold; }
.style5 {
	font-family: Arial;
	font-size: 10px;
}
-->
</style>

<script language="javascript">
function doAddNew_fut()
{
	var form = document.formMain;
	form.new_rec.value = "1";
	form.action = "home.futures.daily-basis.card.jsp";
	form.submit(); 
}
function doCboClick()
{
	var form = document.formMain;
	form.submit();
}

function clickCardView_F(row)
{
	var form = document.formMain;
	if (row == null) row = old_row_obj;
	form.action = "home.futures.daily-basis.card.jsp";
	form.submit();	
}

function CView_F(row_obj) 
{
	highlightOn(row_obj);
	clickCardView_F(row_obj);	
	//formMain.submit();
}
</script>
<form action="" method="post" name="formMain" id="formMain">
  <table width="100%"  border="0.5" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="2" valign="middle"><img src="images/futures-dailybasis.jpg" width="220" height="30">	  </td>
      <td width="23%" valign="middle"><select name="fdb_date" id="fdb_date" onChange="doCboClick()" style="font-family:Arial; font-size:11px; width:150px;border:0">
        <%@include file="include/FuturesDailyBasisDateList-home.jsp"%>
      </select></td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%">&nbsp;</td>
      <td width="5%"><img src="images/cardview.jpg" width="55" height="18" onClick="clickCardView_F();"></td>
      <td width="2%">&nbsp;</td>
    </tr>
    <tr>
      <td width="1%">&nbsp;</td>
      <td width="4%">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr align="center">
      <td colspan="17">
	  		<table width="40%" height = "30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#EEEEEE">
        		<tr bordercolor="#AAAAAA">
          			<td width="9%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">Id</span></strong></td>
          			<td width="17%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">Ter.Mth</span></strong></td>
          			<td width="16%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">High</span></strong></td>
          			<td width="17%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">Low</span></strong></td>
          			<td width="13%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">Close</span></strong></td>
          			<td width="13%" align="center" bgcolor="#EEEEEE"><strong><span class="style1">Basis</span></strong></td>
        		</tr>
		</table>	  
	  </td>
    </tr>
    <tr align="center">
      <td colspan="17">
			<DIV id=scroll1 style="BORDER:0px ; OVERFLOW: auto; WIDTH: 40%; HEIGHT: 130px;">
				<%@include file="home.futures.nyc-daily-basis.list.details.jsp"%>
			</DIV>	  
	  </td>
    </tr>
    <tr align="center">
      <td colspan="17">
			<DIV id=scroll1 style="BORDER:0px ; OVERFLOW: auto; WIDTH: 40%; HEIGHT: 150px;">
				<%@include file="home.futures.liffe-daily-basis.list.details.jsp"%>
			</DIV>	  
	  </td>
    </tr>
    <tr>
      <td><img src="images/new.gif" width="15" height="15" onClick="doAddNew_fut()"></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input name="new_rec" type="hidden" id="new_rec" value="0"></td>
      <td><input type="hidden" name="task_id"    id = "task_id"   value="0"></td>
      <td><input type="hidden" name="ls_date"        id="ls_date"       value="<%=new java.sql.Date(0)%>"></td>
      <td><input type="hidden" name="grade"        id="grade"       value="0"></td>
      <td><input type="hidden" name="uid"        id="uid"       value="<%=user.getuid()%>"></td>
      <td><input type="hidden" name="otype"        id="otype"       value="0"></td>
    </tr>
  </table>
</form>


<%@include file="../footer.jsp"%>